package com.heima.cloud.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class FallBackController {
    @RequestMapping(value = "/fallbackTest")
    public Map <String, String> fallbackTest(){
        Map<String, String> res=new HashMap<>();
        res.put("code","502");
        res.put("msg","连接超时");
        return res;
    }
}
